package com.sky.config;

import com.sky.properties.AliOssProperties;
import com.sky.utils.IMageUploadUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Slf4j
public class OssConfiguration {
    @Bean
    public IMageUploadUtils iMageUploadUtils(@Autowired AliOssProperties aliOssProperties) {
        return new IMageUploadUtils(aliOssProperties);
    }

}
